﻿<Window x:Class="SABnzbdNET.Views.AboutView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="About SABnzbdNET" Height="310" Width="400" Icon="pack://application:,,,/Graphics/SABnzbd.ico" ShowInTaskbar="False" WindowState="Normal" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
    <Grid Margin="10">
        <GroupBox Header="About" Height="175" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="grpAbout" VerticalAlignment="Top">
            <Grid>
                <Image Height="100" HorizontalAlignment="Left" Name="imgBackground" Opacity="0.25" Stretch="Uniform" VerticalAlignment="Top" Width="100">
                    <Image.Source>
                        <BitmapImage UriSource="/SABnzbdNET;component/Graphics/SABnzbd.jpg"></BitmapImage>
                    </Image.Source>
                </Image>
                <Label Height="25" HorizontalAlignment="Stretch" Margin="100,0,0,0" Content="{Binding Path=AppName}" VerticalAlignment="Top" />
                <Label Height="25" HorizontalAlignment="Stretch" Margin="100,25,0,0" Content="{Binding Path=AppVersion}" VerticalAlignment="Top" />
                <Label Height="25" HorizontalAlignment="Stretch" Margin="100,50,0,0" Content="{Binding Path=AppCopyright}" VerticalAlignment="Top" />
                <TextBlock VerticalAlignment="Top" Height="25" HorizontalAlignment="Stretch" Margin="106,75,0,0" >
                    <Hyperlink Command="{Binding Path=LaunchBrowserCommand}">
                        <Run Name="runHomepage" Text="sabnzbdnet.codeplex.com" />
                    </Hyperlink>
                </TextBlock>
                <TextBlock Height="50" HorizontalAlignment="Stretch" Margin="0,100,0,0" Text="{Binding Path=AppDescription}" VerticalAlignment="Top" TextWrapping="Wrap" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Update" Height="50" HorizontalAlignment="Stretch" Margin="0,175,0,0" Name="groupBox1" VerticalAlignment="Top">
            <Grid>
                <Label Height="25" HorizontalAlignment="Stretch" Margin="0,0,100,0" VerticalAlignment="Top" Content="{Binding Path=UpdateAvailableText}" />
                <Button Content="Update" Height="23" HorizontalAlignment="Right" Margin="0,0,0,0" Name="btnUpdate" VerticalAlignment="Top" Width="75" IsEnabled="{Binding Path=UpdateAvailable}" Command="{Binding Path=UpdateApplicationCommand}" />
            </Grid>
        </GroupBox>
        <Button Content="Close" Height="23" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="btnClose" VerticalAlignment="Bottom" Width="75" Command="{Binding Path=CloseWindowCommand}" />
    </Grid>
</Window>
